import IndexPage from './common/pages/HomePage';

function addChildRoutes(routes, childRoutes) {
  // 如果是数组
  if (childRoutes instanceof Array) {
    childRoutes.forEach((route) => {
      routes.childRoutes.push(route)
    })
  } else {
    routes.childRoutes.push(childRoutes)
  }
}

var routes = {
  path: '/',
  // component: IndexPage,
  childRoutes: [],
};
// 用户所持品子系统
addChildRoutes(routes, require('./transfer/router'));


export default routes;
